#ifndef SRITCPCLIENT_H
#define SRITCPCLIENT_H

class sriTCPClient
{
public:
    sriTCPClient();
    ~sriTCPClient();

    bool ConnectToHost(const char* serverip,const int port);
    int Send(const void* buffer,const int bufferlen);//返回的是发送的字符串长度
    int Recv(void* buffer,const int bufferlen);
//    bool RecvAll(void* buffer,const int bufferlen);//持续接收缓冲区的数据

private:
    int m_sockfd;

};



#endif // SRITCPCLIENT_H
